﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.controllers.world {
    import net.wooga.pets.interfaces.*;
    import net.wooga.pets.constants.*;

    public class CreateAvatarCommand extends CreateActorCommand {

        override public function execute():void{
            var _local1:IActing = worldFactory.createActor(event.info);
            var _local2:Array = worldModel.getRoomIdsOfType(GameConstants.TYPE_ENTRANCE_AREA);
            _local1.roomId = _local2[0];
            setActor(_local1, EventConstants.CREATE_AVATAR_VIEW);
        }

    }
}//package net.wooga.pets.controllers.world 
